package com.nuyoah.mapper;

import com.nuyoah.entity.ScoreRecord;
import com.nuyoah.entity.Statistics;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;

import java.util.List;

/**
 * <p>
 * 存储对学习和竞赛成绩的统计分析数据 Mapper 接口
 * </p>
 *
 * @author xyx
 * @since 2024-06-03
 */
public interface StatisticsMapper extends BaseMapper<Statistics> {


    List<Statistics> getAnalysisData(Integer userId);

    List<ScoreRecord> getRegular(Integer studentId, String studentGrade);

    List<ScoreRecord> getCompetition(Integer studentId, String competition);

    List<ScoreRecord> getTotal(Integer studentId);

}
